﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Dln.Common;
using Dln.Common.Helper;

public partial class Page_AutoUpdate_DoctorsTreat : System.Web.UI.Page
{
    protected string SerialNumber = string.Empty;
    protected string Key = string.Empty;
    protected DataRowCollection Dc = null;
    protected string UnicodeKey = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    {
        SerialNumber = HttpContext.Current.Request.QueryString["SerialNumber"];
        Key = HttpContext.Current.Request.QueryString["KEY"].Replace("%2B", "+");
        UnicodeKey = HttpContext.Current.Request.QueryString["Key"].Replace("+", "%2B");
        if (!string.IsNullOrEmpty(SerialNumber) && !string.IsNullOrEmpty(Key))
        {
            var url = CommonHelper.GetAppSettings("DlnService1");
            object[] args = new object[2];
            args[0] = (Key);
            args[1] = (SerialNumber);
            object result = WebServiceHelper.InvokeWebService(url, "GetOrdsInfo", args);
            if (result != null)
            {
                DataSet ds = (DataSet)result;
                var dc = ds.Tables[0];
                if (!dc.Columns.Contains("ResultDataSet"))
                {
                    Dc = dc.Rows;
                }
            }
        }
    }
}